import { Router } from 'express';

import Valid from '../../middleware/validation';
import { pages } from './api';

const router = Router();

router.get('/pages', Valid.query(pages.validator), pages.api);

export default router;
